package com.nzf.vote.mapper;

import com.nzf.vote.entity.Vote;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author nzf
 * @since 2022-07-25
 */
@Mapper
public interface VoteMapper extends BaseMapper<Vote> {
    @Select("select * from  vote where user_id = #{userId} ")
    List<Vote> getVoteByUserId(Integer userId);

}
